
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h> 
#include "sVersion.h"
#include "global_flashaddr_stm32.h"
//==============port=====================
#define 		_sProgjectName_				"dq2022_youjia_dc_sampling"
#define 		_sProjectAddr_			"https://gitee.com/microsysdeve/dq2022_youjia_dc_sampling.git"
//=======================================
  
const long ldp = _sIdOffset;
const char _ID_LEN =_sIdLen; 

const char sDateTimedef[6] =
  { BUILD_DATE_YEAR_INT % 100, BUILD_DATE_MONTH_INT, BUILD_DATE_DAY_INT,
  BUILD_TIME_HOURS_INT, BUILD_TIME_MINUTES_INT, BUILD_TIME_SECONDS_INT
};
 
const struct STVERSION_CRC stversion_crc
  __attribute__ ((at (_mainappversion_startAddr_))) =
{
  _sProgjectName_,
  {
BUILD_DATE_DAY_INT, BUILD_DATE_MONTH_INT, BUILD_DATE_YEAR_INT % 100, 0,
      BUILD_TIME_SECONDS_INT, BUILD_TIME_MINUTES_INT,
      BUILD_TIME_HOURS_INT, 0}, _lCodelen_def_, _lCrc32_def_, _lSigndef_,
    _sProjectAddr_,};

const unsigned long cnlDateTimeShow[2] =
  { (BUILD_DATE_YEAR_INT % 100) *10000+ (BUILD_DATE_MONTH_INT)*100+BUILD_DATE_DAY_INT,
  BUILD_TIME_HOURS_INT*10000+BUILD_TIME_MINUTES_INT*100+BUILD_TIME_SECONDS_INT
}; 
/* 
    _LOCALVer_Y_M_D_L_  
    _LOCALVer_Y_M_D_H_,
    _LOCALVer_H_M_S_L_,
    _LOCALVer_H_M_S_H_, 

void
sVersion_Push_ModbusBuf (char *sVersion, unsigned short iStart)
{
  unsigned long ltemp;
#define USHORT  unsigned short

  ltemp =
    sVerion[0] + (unsigned long) sVerion[1] * 100 +
    (unsigned long) sVerion[2] * 10000;
  memcpy ((char *) _iReg_Getp (iStart), (char *) &ltemp, sizeof (USHORT) * 2);

  ltemp =
    sVerion[4] + (unsigned long) sVerion[5] * 100 +
    (unsigned long) sVerion[6] * 10000;
  memcpy ((char *) _iReg_Getp (iStart + 2), (char *) &ltemp,
	  sizeof (USHORT) * 2);

}
  */
